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A;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;ACAA","sources":["webpack://quran.com/src/pages/reciters/[reciterId]/[chapterId].tsx","webpack://quran.com/sentry-wrapper-module","webpack://quran.com/./public/icons/copy.svg","webpack://quran.com/./public/icons/reader.svg","webpack://quran.com/./src/pages/reciters/[reciterId]/chapterId.module.scss","webpack://quran.com/./src/xstate/actors/audioPlayer/selectors.ts","webpack://quran.com/external commonjs \"@reduxjs/toolkit\"","webpack://quran.com/external commonjs \"@sentry/nextjs\"","webpack://quran.com/external commonjs \"@xstate/react\"","webpack://quran.com/external commonjs \"classnames\"","webpack://quran.com/external commonjs \"clipboard-copy\"","webpack://quran.com/external commonjs \"humps\"","webpack://quran.com/external commonjs \"lodash/findKey\"","webpack://quran.com/external commonjs \"lodash/groupBy\"","webpack://quran.com/external commonjs \"lodash/random\"","webpack://quran.com/external commonjs \"lodash/range\"","webpack://quran.com/external commonjs \"lodash/sample\"","webpack://quran.com/external commonjs \"next-seo\"","webpack://quran.com/external commonjs \"next-translate/useTranslation\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/app-router-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/head-manager-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/i18n/detect-domain-locale.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/i18n/normalize-locale-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/is-plain-object.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/mitt.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/page-path/denormalize-page-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/add-locale.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/add-path-prefix.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/compare-states.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/format-next-pathname-info.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/format-url.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/get-asset-path-from-route.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/get-next-pathname-info.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/is-bot.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/is-dynamic.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/parse-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/parse-relative-url.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/path-has-prefix.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/querystring.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/remove-trailing-slash.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/resolve-rewrites.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/route-matcher.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/route-regex.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/utils.js\"","webpack://quran.com/external commonjs \"next/router\"","webpack://quran.com/external commonjs \"react\"","webpack://quran.com/external commonjs \"react-redux\"","webpack://quran.com/external commonjs \"react/jsx-runtime\"","webpack://quran.com/external commonjs \"redux-persist\"","webpack://quran.com/external commonjs \"xstate\"","webpack://quran.com/external commonjs \"xstate/lib/actions\"","webpack://quran.com/external module \"@radix-ui/react-dropdown-menu\"","webpack://quran.com/external module \"@radix-ui/react-tooltip\"","webpack://quran.com/external module \"firebase/compat/analytics\"","webpack://quran.com/external module \"firebase/compat/app\"","webpack://quran.com/external module \"react-toastify\"","webpack://quran.com/external node-commonjs \"querystring\""],"sourcesContent":["/* eslint-disable max-lines */\nimport { useContext, useState } from 'react';\n\nimport { useSelector } from '@xstate/react';\nimport classNames from 'classnames';\nimport clipboardCopy from 'clipboard-copy';\nimport { GetStaticPaths, GetStaticProps } from 'next';\nimport { useRouter } from 'next/router';\nimport useTranslation from 'next-translate/useTranslation';\n\nimport layoutStyle from '../../index.module.scss';\n\nimport styles from './chapterId.module.scss';\n\nimport { getChapterAudioData, getChapterIdBySlug, getReciterData } from '@/api';\nimport { download } from '@/components/AudioPlayer/Buttons/DownloadAudioButton';\nimport NextSeoWrapper from '@/components/NextSeoWrapper';\nimport Button, { ButtonType } from '@/dls/Button/Button';\nimport Spinner from '@/dls/Spinner/Spinner';\nimport { ToastStatus, useToast } from '@/dls/Toast/Toast';\nimport CopyIcon from '@/icons/copy.svg';\nimport DownloadIcon from '@/icons/download.svg';\nimport PauseIcon from '@/icons/pause.svg';\nimport PlayIcon from '@/icons/play-arrow.svg';\nimport ReaderIcon from '@/icons/reader.svg';\nimport { makeCDNUrl } from '@/utils/cdn';\nimport { getAllChaptersData, getChapterData } from '@/utils/chapter';\nimport { logButtonClick } from '@/utils/eventLogger';\nimport {\n getCanonicalUrl,\n getReciterChapterNavigationUrl,\n getSurahNavigationUrl,\n} from '@/utils/navigation';\nimport { getCurrentPath } from '@/utils/url';\nimport { isValidChapterId } from '@/utils/validator';\nimport { selectCurrentAudioReciterId } from '@/xstate/actors/audioPlayer/selectors';\nimport { AudioPlayerMachineContext } from '@/xstate/AudioPlayerMachineContext';\nimport Chapter from 'types/Chapter';\nimport Reciter from 'types/Reciter';\n\ntype ShareRecitationPageProps = {\n selectedReciter: Reciter;\n selectedChapter: Chapter;\n};\n\nconst RecitationPage = ({ selectedReciter, selectedChapter }: ShareRecitationPageProps) => {\n const { t, lang } = useTranslation();\n const toast = useToast();\n const router = useRouter();\n const [isDownloadingAudio, setIsDownloadingAudio] = useState(false);\n\n const audioService = useContext(AudioPlayerMachineContext);\n const isAudioPlaying = useSelector(audioService, (state) =>\n state.matches('VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING'),\n );\n const currentSurah = useSelector(audioService, (state) => state.context.surah);\n const currentReciterId = useSelector(audioService, selectCurrentAudioReciterId);\n\n const isCurrentlyPlayingThisChapter =\n isAudioPlaying &&\n currentSurah === Number(selectedChapter.id) &&\n currentReciterId === selectedReciter.id;\n\n const onPlayAudioClicked = () => {\n audioService.send({\n type: 'PLAY_SURAH',\n surah: Number(selectedChapter.id),\n reciterId: selectedReciter.id,\n });\n };\n\n const onCopyLinkClicked = () => {\n logButtonClick('share-recitation-copy-link');\n const path = getCurrentPath();\n if (origin) {\n clipboardCopy(path).then(() => {\n toast(t('common:shared'), { status: ToastStatus.Success });\n });\n }\n };\n\n const onReadClicked = () => {\n logButtonClick('share-recitation-read');\n router.push(getSurahNavigationUrl(selectedChapter.id));\n };\n\n const onDownloadClicked = async () => {\n setIsDownloadingAudio(true);\n logButtonClick('share-recitation-download');\n const audioData = await getChapterAudioData(\n Number(selectedReciter.id),\n Number(selectedChapter.id),\n );\n\n download(audioData.audioUrl, () => {\n setIsDownloadingAudio(false);\n });\n };\n\n return (\n <>\n <NextSeoWrapper\n title={`${selectedReciter.translatedName.name} - ${selectedChapter.transliteratedName}`}\n description={t('reciter:reciter-chapter-desc', {\n surahName: selectedChapter.transliteratedName,\n reciterName: selectedReciter.translatedName.name,\n })}\n canonical={getCanonicalUrl(\n lang,\n getReciterChapterNavigationUrl(selectedReciter.id.toString(), selectedChapter.slug),\n )}\n />\n <div className={classNames(layoutStyle.flow)}>\n <div className={classNames(layoutStyle.flowItem, styles.container)}>\n {/* eslint-disable-next-line @next/next/no-img-element */}\n <img\n className={styles.reciterImage}\n alt={selectedReciter.translatedName.name}\n src={makeCDNUrl(selectedReciter.profilePicture)}\n />\n <div>\n <div className={styles.chapterName}>\n {/* eslint-disable-next-line i18next/no-literal-string */}\n {selectedChapter.id}. {selectedChapter.transliteratedName}\n </div>\n <div className={styles.reciterName}>{selectedReciter.translatedName.name}</div>\n </div>\n <div className={styles.actionsContainer}>\n {isCurrentlyPlayingThisChapter ? (\n <Button\n onClick={() => audioService.send('TOGGLE')}\n prefix={<PauseIcon />}\n className={styles.playButton}\n >\n {t('common:audio.player.pause-audio')}\n </Button>\n ) : (\n <Button\n className={styles.playButton}\n onClick={onPlayAudioClicked}\n prefix={<PlayIcon />}\n shouldFlipOnRTL={false}\n >\n {t('common:audio.player.play-audio')}\n </Button>\n )}\n\n <div className={styles.secondaryActionsContainer}>\n <Button\n className={styles.secondaryAction}\n onClick={onReadClicked}\n prefix={<ReaderIcon />}\n type={ButtonType.Secondary}\n >\n {t('reciter:read')}\n </Button>\n <Button\n className={styles.secondaryAction}\n onClick={onCopyLinkClicked}\n prefix={<CopyIcon />}\n type={ButtonType.Secondary}\n >\n {t('reciter:copy-link')}\n </Button>\n <Button\n className={styles.secondaryAction}\n onClick={onDownloadClicked}\n prefix={isDownloadingAudio ? <Spinner /> : <DownloadIcon />}\n type={ButtonType.Secondary}\n >\n {t('common:audio.player.download')}\n </Button>\n </div>\n </div>\n </div>\n </div>\n </>\n );\n};\n\nexport default RecitationPage;\n\nexport const getStaticProps: GetStaticProps = async ({ params, locale }) => {\n try {\n const reciterId = params.reciterId as string;\n let chapterId = params.chapterId as string;\n const isValidId = isValidChapterId(chapterId);\n // if it's not a valid number or a number that exceed 114 or below 1\n if (!isValidId) {\n const sluggedChapterId = await getChapterIdBySlug(chapterId, locale);\n // if it's not a valid number nor a valid slug\n if (!sluggedChapterId) {\n return { notFound: true };\n }\n chapterId = sluggedChapterId;\n }\n\n const reciterData = await getReciterData(reciterId, locale);\n const chaptersData = await getAllChaptersData(locale);\n const chapterData = await getChapterData(chaptersData, chapterId);\n\n if (!reciterData || !chapterData) {\n return { notFound: true };\n }\n\n return {\n props: {\n chaptersData,\n selectedReciter: reciterData.reciter,\n selectedChapter: { ...chapterData, id: chapterId },\n },\n };\n // eslint-disable-next-line max-lines\n } catch (error) {\n return {\n notFound: true,\n };\n }\n};\n\nexport const getStaticPaths: GetStaticPaths = async () => ({\n paths: [], // no pre-rendered chapters at build time.\n fallback: 'blocking', // will server-render pages on-demand if the path doesn't exist.\n});\n","import * as Sentry from '@sentry/nextjs';\nimport * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\nexport * from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\n\n/*\n * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the\n * `pages/` directory.\n *\n * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,\n * this causes both TS and ESLint to complain, hence the pragma comments below.\n */\n\nconst userPageModule = serverComponentModule ;\n\nconst pageComponent = userPageModule ? userPageModule.default : undefined;\n\nconst origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;\nconst origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;\nconst origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst getInitialPropsWrappers = {\n '/_app': Sentry.wrapAppGetInitialPropsWithSentry,\n '/_document': Sentry.wrapDocumentGetInitialPropsWithSentry,\n '/_error': Sentry.wrapErrorGetInitialPropsWithSentry,\n};\n\nconst getInitialPropsWrapper = getInitialPropsWrappers['/reciters/[reciterId]/[chapterId]'] || Sentry.wrapGetInitialPropsWithSentry;\n\nif (pageComponent && typeof origGetInitialProps === 'function') {\n pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;\n}\n\nconst getStaticProps =\n typeof origGetStaticProps === 'function'\n ? Sentry.wrapGetStaticPropsWithSentry(origGetStaticProps, '/reciters/[reciterId]/[chapterId]')\n : undefined;\nconst getServerSideProps =\n typeof origGetServerSideProps === 'function'\n ? Sentry.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/reciters/[reciterId]/[chapterId]')\n : undefined;\n\nconst pageWrapperTemplate = pageComponent ? Sentry.wrapPageComponentWithSentry(pageComponent ) : pageComponent;\n\nexport { pageWrapperTemplate as default, getServerSideProps, getStaticProps };\n","var _rect, _path;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgCopy = function SvgCopy(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n className: \"feather feather-copy\"\n }, props), _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: 9,\n y: 9,\n width: 13,\n height: 13,\n rx: 2,\n ry: 2\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"\n })));\n};\nexport default SvgCopy;","var _path;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgReader = function SvgReader(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 .623v22.004c0 .165.067.324.186.44a.64.64 0 0 0 .448.183h17.332a.64.64 0 0 0 .448-.182.617.617 0 0 0 .186-.44V.622a.617.617 0 0 0-.186-.44.64.64 0 0 0-.448-.183H3.634a.64.64 0 0 0-.448.182.617.617 0 0 0-.186.44Zm10.146 13.493H7.227v-1.66h5.918v1.66Zm4.227-4.152H7.227v-1.66h10.146v1.66Zm0-4.152H7.227v-1.66h10.146v1.66Z\"\n })));\n};\nexport default SvgReader;","// Exports\nmodule.exports = {\n\t\"container\": \"chapterId_container__1pGhS\",\n\t\"reciterImage\": \"chapterId_reciterImage__77FGp\",\n\t\"actionsContainer\": \"chapterId_actionsContainer___WGL9\",\n\t\"playButton\": \"chapterId_playButton__sE4yK\",\n\t\"secondaryActionsContainer\": \"chapterId_secondaryActionsContainer__HI3Bm\",\n\t\"secondaryAction\": \"chapterId_secondaryAction__lXerZ\",\n\t\"chapterName\": \"chapterId_chapterName__rAVTI\",\n\t\"reciterName\": \"chapterId_reciterName__tE57U\"\n};\n","/* eslint-disable import/prefer-default-export */\n\nimport { DEFAULT_RECITER } from '@/redux/defaultSettings/defaultSettings';\nimport { makeVerseKey } from '@/utils/verse';\n\nexport const selectIsUsingDefaultReciter = (state) =>\n state.context.reciterId === DEFAULT_RECITER.id;\n\nexport const selectCurrentAudioReciterId = (state) => state.context.audioData?.reciterId;\n\nexport const selectIsLoading = (state) => state.hasTag('loading');\n\nexport const selectIsAudioPlaying = (state) =>\n state.matches('VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING');\n\nexport const selectIsPlayingCurrentChapter = (state, chapterId) => {\n const isAudioPlaying = selectIsAudioPlaying(state);\n const currentSurah = state.context.surah;\n return isAudioPlaying && currentSurah === chapterId;\n};\n\nexport const selectIsLoadingCurrentChapter = (state, chapterId) => {\n const isLoading = selectIsLoading(state);\n const currentSurah = state.context.surah;\n return isLoading && currentSurah === chapterId;\n};\n\nexport const selectIsVerseBeingPlayed = (state, verseKey) => {\n const { surah, ayahNumber } = state.context;\n return (\n state.matches('VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING') &&\n makeVerseKey(surah, ayahNumber) === verseKey\n );\n};\n\nexport const selectIsVerseLoading = (state, verseKey) => {\n const { surah, ayahNumber } = state.context;\n return selectIsLoading(state) && makeVerseKey(surah, ayahNumber) === verseKey;\n};\n","module.exports = require(\"@reduxjs/toolkit\");","module.exports = require(\"@sentry/nextjs\");","module.exports = require(\"@xstate/react\");","module.exports = require(\"classnames\");","module.exports = require(\"clipboard-copy\");","module.exports = require(\"humps\");","module.exports = require(\"lodash/findKey\");","module.exports = require(\"lodash/groupBy\");","module.exports = require(\"lodash/random\");","module.exports = require(\"lodash/range\");","module.exports = require(\"lodash/sample\");","module.exports = require(\"next-seo\");","module.exports = require(\"next-translate/useTranslation\");","module.exports = require(\"next/dist/shared/lib/app-router-context.js\");","module.exports = require(\"next/dist/shared/lib/head-manager-context.js\");","module.exports = require(\"next/dist/shared/lib/i18n/detect-domain-locale.js\");","module.exports = require(\"next/dist/shared/lib/i18n/normalize-locale-path.js\");","module.exports = require(\"next/dist/shared/lib/is-plain-object.js\");","module.exports = require(\"next/dist/shared/lib/mitt.js\");","module.exports = require(\"next/dist/shared/lib/page-path/denormalize-page-path.js\");","module.exports = require(\"next/dist/shared/lib/router-context.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/add-locale.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/add-path-prefix.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/compare-states.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/format-next-pathname-info.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/format-url.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/get-asset-path-from-route.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/get-next-pathname-info.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/is-bot.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/is-dynamic.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/parse-path.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/parse-relative-url.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/path-has-prefix.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/querystring.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/remove-trailing-slash.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/resolve-rewrites.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/route-matcher.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/route-regex.js\");","module.exports = require(\"next/dist/shared/lib/utils.js\");","module.exports = require(\"next/router\");","module.exports = require(\"react\");","module.exports = require(\"react-redux\");","module.exports = require(\"react/jsx-runtime\");","module.exports = require(\"redux-persist\");","module.exports = require(\"xstate\");","module.exports = require(\"xstate/lib/actions\");","module.exports = import(\"@radix-ui/react-dropdown-menu\");;","module.exports = import(\"@radix-ui/react-tooltip\");;","module.exports = import(\"firebase/compat/analytics\");;","module.exports = import(\"firebase/compat/app\");;","module.exports = import(\"react-toastify\");;","module.exports = require(\"querystring\");"],"names":["RecitationPage","selectedReciter","selectedChapter","t","lang","useTranslation","toast","useToast","router","useRouter","isDownloadingAudio","setIsDownloadingAudio","useState","audioService","useContext","AudioPlayerMachineContext","isAudioPlaying","useSelector","state","matches","currentSurah","context","surah","currentReciterId","selectCurrentAudioReciterId","isCurrentlyPlayingThisChapter","Number","id","onPlayAudioClicked","send","type","reciterId","onCopyLinkClicked","logButtonClick","path","getCurrentPath","origin","clipboardCopy","then","status","ToastStatus","Success","onReadClicked","push","getSurahNavigationUrl","onDownloadClicked","audioData","getChapterAudioData","download","audioUrl","_jsxs","_Fragment","_jsx","NextSeoWrapper","title","translatedName","name","transliteratedName","description","surahName","reciterName","canonical","getCanonicalUrl","getReciterChapterNavigationUrl","toString","slug","div","className","classNames","layoutStyle","flow","flowItem","styles","container","img","reciterImage","alt","src","makeCDNUrl","profilePicture","chapterName","actionsContainer","Button","onClick","prefix","PauseIcon","playButton","PlayIcon","shouldFlipOnRTL","secondaryActionsContainer","secondaryAction","ReaderIcon","ButtonType","Secondary","CopyIcon","Spinner","DownloadIcon","getStaticProps","params","locale","chapterId","isValidId","isValidChapterId","sluggedChapterId","getChapterIdBySlug","notFound","reciterData","getReciterData","chaptersData","getAllChaptersData","chapterData","getChapterData","props","reciter","error","getStaticPaths","paths","fallback","DEFAULT_RECITER","makeVerseKey","selectIsUsingDefaultReciter","selectIsLoading","hasTag","selectIsAudioPlaying","selectIsPlayingCurrentChapter","selectIsLoadingCurrentChapter","isLoading","selectIsVerseBeingPlayed","verseKey","ayahNumber","selectIsVerseLoading"],"sourceRoot":""}